import Vue from 'vue';
import App from './App.vue';
import './assets/style/style.scss';
import './config/rem.js';
import i18n from './common/i18n/index.js';
import router from './router';
import store from './store/index.js'

Vue.config.productionTip = false;
Vue.prototype.$I18n = i18n;

var onPlusReady = function (callback, context = this) {
  if (window.plus) {
      callback.call(context)
  } else {
      document.addEventListener('plusready', callback.bind(context))
  }
};
Vue.mixin({
  beforeCreate() {
      onPlusReady(() => {
          this.plusReady = true
      }, this);
  },
  methods: {
      onPlusReady: onPlusReady
  }
});

new Vue({
  render: h => h(App),
  router,
  i18n,
  store
}).$mount('#app')
